#pragma once
#include "../stdafx.h"
#include  "../modelheaders.h"
#include "../math/math.h"
#include "Tmp_Manager.h"



typedef struct _OBJ
{
    int32 id;
    int32 mid;
    int32 tid;
    char* name;
    Model* model;
}OBJ;



typedef struct _TEXTURE
{
    int32 id;
    char* name;
    LPDIRECT3DTEXTURE9 tex;
}TEXTURE;

class ModelManager :
    public Manager<OBJ>
{
public:
    ModelManager(void);
    ~ModelManager(void);
    bool AddObj(int32,int32,char*,void*);
    Model* GetModel(int32);
    int32 HasObj(int32);
    void Log();

};

class TextureManager:
    public Manager<TEXTURE>
{
public:
    TextureManager(void);
    ~TextureManager(void);
    int32 AddObj(char*,LPDIRECT3DTEXTURE9);
    int32 HasObj(char*);
    void Log();
};